/*
 * led.h
 *
 *  Created on: 2014-8-1
 *      Author: ztp
 */
#ifndef LED_H_
#define LED_H_

#define LED_SYS	1
#define LED_SD		2

#define LED_LIGHT_OFF_ALWAYS 		100
#define LED_LIGHT_ON_ALWAYS 		101
#define LED_LIGHT_CTRL_BY_DATA		102
#define LED_FLUSH_1_TIME_SEC 		1
#define LED_FLUSH_2_TIMES_SEC 		2
#define LED_FLUSH_3_TIMES_SEC 		3
#define LED_FLUSH_4_TIMES_SEC 		4
#define LED_FLUSH_5_TIMES_SEC		5
#define LED_FLUSH_6_TIMES_SEC		6
#define LED_FLUSH_7_TIMES_SEC		7
#define LED_FLUSH_8_TIMES_SEC		8
#define LED_FLUSH_9_TIMES_SEC		9
#define LED_FLUSH_10_TIMES_SEC		10
#define LED_FLUSH_2_SEC_TIME		12
#define LED_FLUSH_3_SEC_TIME		13
#define LED_FLUSH_4_SEC_TIME		14
#define LED_FLUSH_5_SEC_TIME		15

#define MISC_THREAD_SLEEP_MS		100

void LedInit();
void LedModeSet(int ledid, int mode);
void LedFlush(int ledid, int on);
void StartMiscThread();

#endif /* LED_H_ */
